package com.zpark.beans;

import java.io.Serializable;

/**
 * @PackageName: com.zpark.beans
 * @ClassName: User
 * @Description:
 * @author: RZS
 * @date: 2023/3/28  14:39
 */
public class User implements Serializable {
    private String uname;
    private String sex;

    public User(String uname, String sex) {
        System.out.println("通过User的带参数构造器实例化对象");
        this.uname = uname;
        this.sex = sex;
    }

    public void out(){
        System.out.println(uname + ": " + sex);
    }
}
